package com.git.bds.mr.patient.convert;

import com.git.bds.mr.patient.model.domain.PatientInfo;
import com.git.bds.mr.patient.model.vo.PatientVO;
import com.git.bds.mr.records.model.domain.Records;
import com.git.bds.mr.records.model.dto.RecordDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author 成大事
 * @since 2022/9/23 18:06
 */
@Mapper
public interface PatientConvert {
    PatientConvert INSTANCE = Mappers.getMapper(PatientConvert.class);


    /**
     * 到患者vo
     *
     * @param patientInfo 患者信息
     * @return {@link PatientVO}
     */
    PatientVO toPatientVO(PatientInfo patientInfo);


    /**
     * 记录数据到
     *
     * @param records 记录
     * @return {@link RecordDTO}
     */
    RecordDTO toRecordDTO(Records records);



}
